//  Copyright © 2014 Allen County Public Library.

//        ACPL Mobile is free software: This program is distributed and you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.  ACPL Mobile is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY, including without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with ACPL Mobile. If not, see http://www.gnu.org/licenses/.

package us.in.lib.acpl.Mobile_ACPL.models;

import java.util.List;

import org.codehaus.jackson.annotate.JsonIgnoreProperties;
@JsonIgnoreProperties(ignoreUnknown=true)
public class OverdriveMetadata {

	public String isOwnedByCollections;
	public String mediaType;
	public String title;
	public String subtitle;
	public String sortTitle;
	public String series;
	public String publisher;
	public String imprint;
	public String publishDate;
	public String publishDateText;
	public List<OverdriveMetadataCreator> creators;
	public String isPublicDomain;
	public String isPublicPerformanceAllowed;
	public String shortDescription;
	public String longDescription;
	public String starRating;
	public OverdriveMetadataImages images;
	
	@JsonIgnoreProperties(ignoreUnknown=true)
	public static class OverdriveMetadataCreator{
		public String role;
		public String name;
		public String fileAs;
	}
	
	@JsonIgnoreProperties(ignoreUnknown=true)
	public static class OverdriveMetadataImages{
		public OverdriveMetadataImagesCover cover;
		public OverdriveMetadataImagesThumbnail thumbnail;
		
		@JsonIgnoreProperties(ignoreUnknown=true)
		public static class OverdriveMetadataImagesCover {
			public String href;
		}
		
		@JsonIgnoreProperties(ignoreUnknown=true)
		public static class OverdriveMetadataImagesThumbnail {
			public String href;
		}
	}
}
